<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/js/wangeditor/css/style.css" rel="stylesheet">
<style>

    .layui-upload-colse {
        position: relative;
    }

    .closeUpload {
        position: absolute;
        top: 0;
        right: 0;
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    .upImg {
        width: 80px;
        height: 80px;
    }

    .formfixed {
        position: relative;
    }

    .remove {
        position: absolute;
        top: 125%;
        right: -175px;
        transform: translateY(-50%);
        cursor: pointer;
    }

    .myheader {
        height: 140px;
        background-color: #FFFFFF;
        padding: 20px 0;
        display: flex;
        align-items: center;
        margin: 0;
        flex-wrap: wrap;
    }

    .layui-tab {

        overflow: auto;
        background-color: #FFFFFF;
        margin: 10px 0 0 0;
    }

    .layui-input-block1 {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-left: 5px;
    }
    .layui-tab-title{
        height: 40px!important;
    }
    .layui-tab-content{
        height: calc(100% - 55px);
        overflow: auto;
    }
    .layui-form-select dl,.xm-body{
        z-index: 1000!important;
    }
    .layui-upload-list{
        display: flex;
        flex-wrap: wrap;
    }

    .mybutton {
        background: #fff;
        height: 150px;
        width: 150px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #a9b7b7;
        border: 2px solid #a9b7b7;
        margin-right: 10px;
        padding: 10px;
    }
    .upImg {
            width: 80px;
            height: 80px;
    }

    .mybutton:hover {
        cursor: pointer;
    }
    .layui-input-block{
        display: flex;
        align-items: center;
    }
    .layui-form-label {
        width: auto !important;
        margin: 0;
        padding-right: 0;
        height: 100%;
    }
    .layui-input-block {
        margin-left: 0px !important;
        padding-left: 5px;
        display: flex;
        align-items: flex-start;
        line-height: 1.4;
    }
    .box{
        position: relative;
    }
    .box::before{
        content:'';
        position:absolute;
        top: -2px;
        left: -13px;
        width: 7px;
        height: 113%;
        background-color: rgba(2, 167, 240, 1);

    }
    .layui-form-item,.layui-inline{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
</style>
<body>
<input id="userId" th:value="${id}" style="display: none">
<input id="myType" th:value="${type}" style="display: none">
<input id="myType1" th:value="${myData?.type}" style="display: none">
<div class="layui-fluid mt2" style="background-color: #f0f2f5;    padding: 0 !important;">
    <form class="layui-form" style="height: auto;    background-color: #f0f2f5;">
        <div class="layui-form-item " style="background: #fff;  min-height: 60px;display: flex; align-items: center; padding-left: 30px;   padding-top: 10px; margin: 0" >
            <h3 class="box">基本信息</h3>
        </div>
        <div class="layui-form-item" style="background: #fff;  min-height: 60px;   padding-top: 10px; padding-left: 12px;margin: 0">
            <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                <label class="layui-form-label ">所属组别:</label>
                <div class="layui-input-block" >
                    <select th:disabled="${type=='infor'}" name="groupId" id="type1" th:attr="my-id=${myData?.groupId}"  lay-filter="type1"  lay-verify="required">
                        <option value="">请选择所属组别</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline" th:if="${myData?.type==2}" style="width: calc((100% - 55px) / 4)">
                <label class="layui-form-label ">队伍名称:</label>
                <div class="layui-input-block" >
<!--                    <input th:disabled="${type=='infor'}" class="layui-input" name="teamName" id="teamName" placeholder="请输入队伍名称"-->
<!--                           autocomplete="off" th:value="${myData?.teamName}" lay-verify="required">-->

                    <select name="teamId" id="teamName1" th:attr="my-id=${myData?.teamId}" lay-verify="type" lay-verify="required">
                        <option value="">请输入队伍名称</option>
                    </select>


                </div>
            </div>
            <div class="layui-inline"  th:if="${myData?.type==2}" style="width: calc((100% - 55px) / 4)">
                <label class="layui-form-label ">参赛项目:</label>
                <div  class="layui-input-block" >
                    <select name="itemId" id="type2" th:attr="my-id=${myData?.itemId}" lay-verify="type" lay-verify="required">
                        <option value="">请先选择所属组别</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                <label class="layui-form-label ">报名时间:</label>
                <div class=" layui-input-block1"  th:text="(${myData?.updateTime} eq null ?'':${#dates.format(myData?.updateTime, 'yyyy-MM-dd HH:mm:ss')})">
                </div>
            </div>
        </div>
        <div class="layui-form-item " style="background: #fff;  min-height: 60px;display: flex; align-items: center; padding-left: 30px;   margin: 20px 0 0 0 ;" >
            <h3 class="box">选手信息</h3>
        </div>
        <div class="layui-form-item" style="background: #fff;  min-height: 60px;   padding-top: 10px; padding-left: 12px;margin: 0">
            <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                <label class="layui-form-label ">选手类型:</label>
                <div class="layui-input-block" >
                    <select name="type" disabled>
                        <option value="">请选择选手类型</option>
                        <option value="1" th:selected="${myData?.type==1}">领队</option>
                        <option value="2" th:selected="${myData?.type==2}">参赛选手</option>
                    </select>
                </div>
            </div>
        </div>
        <th:block th:if="${myData?.type==1}">
            <div class="layui-form-item" style="background: #fff;  min-height: 60px;   padding-top: 10px; padding-left: 12px;margin: 0">
                <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                    <label class="layui-form-label ">领队姓名:</label>
                    <div class="layui-input-block">
                        <input lay-verify="required" th:disabled="${type=='infor'}" class="layui-input" name="name" id="name" placeholder="请输入领队姓名"
                               autocomplete="off" th:value="${myData?.name}">
                    </div>
                </div>
                <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                    <label class="layui-form-label ">所属市州（院校名称）:</label>
                    <div class="layui-input-block" id="linduShi" th:attr="my-value=${(myData?.groupName=='市州组')?(myData?.city):(myData?.school)}">
                        <div style="display: none" id="city" >
                           <select  th:disabled="${type=='infor'}" name="city" lay-filter="city">
                                <option value="">请选择市</option>
                                <option value="邵阳市" th:selected="${myData?.city=='邵阳市'}">邵阳市</option>
                                <option value="长沙市" th:selected="${myData?.city=='长沙市'}">长沙市</option>
                                <option value="株洲市" th:selected="${myData?.city=='株洲市'}">株洲市</option>
                                <option value="湘潭市" th:selected="${myData?.city=='湘潭市'}">湘潭市</option>
                                <option value="衡阳市" th:selected="${myData?.city=='衡阳市'}">衡阳市</option>
                                <option value="岳阳市" th:selected="${myData?.city=='岳阳市'}">岳阳市</option>
                                <option value="常德市" th:selected="${myData?.city=='常德市'}">常德市</option>
                                <option value="张家界市" th:selected="${myData?.city=='张家界市'}">张家界市</option>
                                <option value="益阳市" th:selected="${myData?.city=='益阳市'}">益阳市</option>
                                <option value="郴州市" th:selected="${myData?.city=='郴州市'}">郴州市</option>
                                <option value="永州市" th:selected="${myData?.city=='永州市'}">永州市</option>
                                <option value="怀化市" th:selected="${myData?.city=='怀化市'}">怀化市</option>
                                <option value="娄底市" th:selected="${myData?.city=='娄底市'}">娄底市</option>
                                <option value="湘西土家族苗族自治州" th:selected="${myData?.city=='湘西土家族苗族自治州'}">湘西土家族苗族自治州</option>
                        </select>
                        </div>
                        <input th:disabled="${type=='infor'}" style="display: none" class="layui-input" name="school" id="school" placeholder="请输入院校名称"
                               autocomplete="off" th:value="${myData?.school}">
                    </div>
                </div>
                <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                    <label class="layui-form-label ">队伍名称:</label>
                    <div class="layui-input-block" >
                        <input lay-verify="required"  disabled class="layui-input" name="teamName" id="teamName" placeholder="请输入院校名称"
                               autocomplete="off" th:value="${myData?.teamName}">
                    </div>
                </div>
            </div>
            <div class="layui-form-item" style="background: #fff;  min-height: 160px;   padding-top: 10px; padding-left: 12px;margin: 0">
                <label class="layui-form-label ">报名表:</label>
                <div class="layui-input-block"  id="myUpdataList"
                     style="background: #fff;width:calc(100% -  70px);  height: 130px;display: flex;align-items: center;  flex-direction: row;flex-wrap: wrap; padding-left: 55px;padding-left: 12px;margin: 0">

                    <!--                applyForms//list-->
                    <input style="display: none" id="applyForms" th:value="${myData?.applyForm}">
                    <th:block th:each="item,data:${applyForms}">
                    <div href="#"  style="margin:5px 10px;width: 100px;position: relative; display: flex;  flex-direction: column;  justify-content: center;  align-items: center;
				           height: 100px;border: 1px solid #000;"  th:attr="onclick='openPdf(\''+${data.index}+'\')', myid=${data.index}+'-0'" >
                        <img class="upImg" style="    width: 50px;height: 50px" src="/img/pdf.png">
                        <span style=" color: #000;   text-align: center; " th:text="${'报名表'}"> </span>
                        <input th:value="${data.index}" class="layui-hide">
                        <a th:if="${type!='infor'}"  style=" position: absolute; right: 0; top: 0;width: 20px; height: 20px;" href="#"  th:attr="onclick='removeImg('+${data.index}+')'">
                            <img style="    width: inherit;height: inherit"  class="closeUpload" src="/img/close.png" >
                        </a>
                    </div>

<!--                        <div href="#"  style="margin:5px 10px;width: 100px;position: relative; display: flex;  flex-direction: column;  justify-content: center;  align-items: center;-->
<!--				height: 100px;border: 1px solid #000;" th:attr="onclick='openPdfUrl(\''+${item}+'\')'" >-->
<!--                            <img class="upImg" style="width: 50px;height: 50px" src="/img/pdf.png">-->
<!--                            <span style=" color: #000;   text-align: center; " th:text="${'报名表'+(data.index+1)}">-->
<!--							</span>-->
<!--                        </div>-->
                    </th:block>
                    <div th:if="${type!='infor'}"  id="myUpdata" style="margin:5px 10px; cursor: pointer;width: 100px;height: 100px;background-color: transparent;display: flex; justify-content: center; align-items: center; border: 1px solid #000;">
                        <span>选择文件</span>
                    </div>
                </div>







            </div>




        </th:block>
        <th:block th:if="${myData?.type==2}">
            <div class="layui-form-item" style="background: #fff;  min-height: 60px;   padding-top: 10px; padding-left: 12px;margin: 0">
                <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                    <label class="layui-form-label ">选手姓名:</label>
                    <div class="layui-input-block" >
                        <input lay-verify="required" th:disabled="${type=='infor'}"  class="layui-input" name="name" id="name" placeholder="请输入选手姓名"
                               autocomplete="off" th:value="${myData?.name}">
                    </div>
                </div>
                <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                    <label class="layui-form-label ">性别:</label>
                    <div class="layui-input-block" >
                        <select lay-verify="required" th:disabled="${type=='infor'}"  name="sex">
                            <option value="">请选择性别</option>
                            <option value="0" th:selected="${myData?.sex==0}">未知</option>
                            <option value="1" th:selected="${myData?.sex==1}">男</option>
                            <option value="2" th:selected="${myData?.sex==2}">女</option>
                        </select>

                    </div>
                </div>
                <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                    <label class="layui-form-label ">民族:</label>
                    <div class="layui-input-block" >
                        <select  lay-verify="required" th:disabled="${type=='infor'}"  name="nation">
                            <option value="">请选择民族</option>
                            <option value="汉族" th:selected="${myData?.nation=='汉族'}">汉族</option>
                            <option value="壮族" th:selected="${myData?.nation=='壮族'}">壮族</option>
                            <option value="满族" th:selected="${myData?.nation=='满族'}">满族</option>
                            <option value="回族" th:selected="${myData?.nation=='回族'}">回族</option>
                            <option value="苗族" th:selected="${myData?.nation=='苗族'}">苗族</option>
                            <option value="维吾尔族" th:selected="${myData?.nation=='维吾尔族'}">维吾尔族</option>
                            <option value="土家族" th:selected="${myData?.nation=='土家族'}">土家族</option>
                            <option value="彝族" th:selected="${myData?.nation=='彝族'}">彝族</option>
                            <option value="蒙古族" th:selected="${myData?.nation=='蒙古族'}">蒙古族</option>
                            <option value="藏族" th:selected="${myData?.nation=='藏族'}">藏族</option>
                            <option value="布依族" th:selected="${myData?.nation=='布依族'}">布依族</option>
                            <option value="侗族" th:selected="${myData?.nation=='侗族'}">侗族</option>
                            <option value="瑶族" th:selected="${myData?.nation=='瑶族'}">瑶族</option>
                            <option value="朝鲜族" th:selected="${myData?.nation=='朝鲜族'}">朝鲜族</option>
                            <option value="白族" th:selected="${myData?.nation=='白族'}">白族</option>
                            <option value="哈尼族" th:selected="${myData?.nation=='哈尼族'}">哈尼族</option>
                            <option value="哈萨克族" th:selected="${myData?.nation=='哈萨克族'}">哈萨克族</option>
                            <option value="黎族" th:selected="${myData?.nation=='黎族'}">黎族</option>
                            <option value="傣族" th:selected="${myData?.nation=='傣族'}">傣族</option>
                            <option value="畲族" th:selected="${myData?.nation=='畲族'}">畲族</option>
                            <option value="傈僳族" th:selected="${myData?.nation=='傈僳族'}">傈僳族</option>
                            <option value="仡佬族" th:selected="${myData?.nation=='仡佬族'}">仡佬族</option>
                            <option value="东乡族" th:selected="${myData?.nation=='东乡族'}">东乡族</option>
                            <option value="高山族" th:selected="${myData?.nation=='高山族'}">高山族</option>
                            <option value="拉祜族" th:selected="${myData?.nation=='拉祜族'}">拉祜族</option>
                            <option value="水族" th:selected="${myData?.nation=='水族'}">水族</option>
                            <option value="佤族" th:selected="${myData?.nation=='佤族'}">佤族</option>
                            <option value="纳西族" th:selected="${myData?.nation=='纳西族'}">纳西族</option>
                            <option value="羌族" th:selected="${myData?.nation=='羌族'}">羌族</option>
                            <option value="土族" th:selected="${myData?.nation=='土族'}">土族</option>
                            <option value="仫佬族" th:selected="${myData?.nation=='仫佬族'}">仫佬族</option>
                            <option value="锡伯族" th:selected="${myData?.nation=='锡伯族'}">锡伯族</option>
                            <option value="柯尔克孜族" th:selected="${myData?.nation=='柯尔克孜族'}">柯尔克孜族</option>
                            <option value="达斡尔族" th:selected="${myData?.nation=='达斡尔族'}">达斡尔族</option>
                            <option value="景颇族" th:selected="${myData?.nation=='景颇族'}">景颇族</option>
                            <option value="毛南族" th:selected="${myData?.nation=='毛南族'}">毛南族</option>
                            <option value="撒拉族" th:selected="${myData?.nation=='撒拉族'}">撒拉族</option>
                            <option value="布朗族" th:selected="${myData?.nation=='布朗族'}">布朗族</option>
                            <option value="塔吉克族" th:selected="${myData?.nation=='塔吉克族'}">塔吉克族</option>
                            <option value="阿昌族" th:selected="${myData?.nation=='阿昌族'}">阿昌族</option>
                            <option value="普米族" th:selected="${myData?.nation=='普米族'}">普米族</option>
                            <option value="鄂温克族" th:selected="${myData?.nation=='鄂温克族'}">鄂温克族</option>
                            <option value="怒族" th:selected="${myData?.nation=='怒族'}">怒族</option>
                            <option value="京族" th:selected="${myData?.nation=='京族'}">京族</option>
                            <option value="基诺族" th:selected="${myData?.nation=='基诺族'}">基诺族</option>
                            <option value="德昂族" th:selected="${myData?.nation=='德昂族'}">德昂族</option>
                            <option value="保安族" th:selected="${myData?.nation=='保安族'}">保安族</option>
                            <option value="俄罗斯族" th:selected="${myData?.nation=='俄罗斯族'}">俄罗斯族</option>
                            <option value="裕固族" th:selected="${myData?.nation=='裕固族'}">裕固族</option>
                            <option value="乌孜别克族" th:selected="${myData?.nation=='乌孜别克族'}">乌孜别克族</option>
                            <option value="门巴族" th:selected="${myData?.nation=='门巴族'}">门巴族</option>
                            <option value="鄂伦春族" th:selected="${myData?.nation=='鄂伦春族'}">鄂伦春族</option>
                            <option value="独龙族" th:selected="${myData?.nation=='独龙族'}">独龙族</option>
                            <option value="塔塔尔族" th:selected="${myData?.nation=='塔塔尔族'}">塔塔尔族</option>
                            <option value="赫哲族" th:selected="${myData?.nation=='赫哲族'}">赫哲族</option>
                            <option value="珞巴族" th:selected="${myData?.nation=='珞巴族'}">珞巴族</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                    <label class="layui-form-label ">出生年月:</label>
                    <div class="layui-input-block">
                        <input lay-verify="required" th:disabled="${type=='infor'}" class="layui-input" name="birthday" id="birthday" placeholder="请输入出生年月"
                               autocomplete="off" th:value="${myData?.birthday}">
                    </div>
                </div>
            </div>
            <div class="layui-form-item" style="background: #fff;  min-height: 60px;   padding-top: 10px; padding-left: 12px;margin: 0">

                <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                    <label class="layui-form-label ">政治面貌:</label>
                    <div class="layui-input-block"  >
                        <select  lay-verify="required" name="politics" th:disabled="${type=='infor'}">
                            <option value="">请选择政治面貌</option>
                            <option value="群众" th:selected="${myData?.politics=='群众'}">群众</option>
                            <option value="中共党员" th:selected="${myData?.politics=='中共党员'}">中共党员</option>
                            <option value="共青团员" th:selected="${myData?.politics=='共青团员'}">共青团员</option>
                            <option value="中共预备党员" th:selected="${myData?.politics=='中共预备党员'}">中共预备党员</option>
                            <option value="无党派人士" th:selected="${myData?.politics=='无党派人士'}">无党派人士</option>
                            <option value="其他" th:selected="${myData?.politics=='其他'}">其他</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                    <label class="layui-form-label ">文化程度:</label>
                    <div class="layui-input-block" >
                        <select lay-verify="required" name="standard" th:disabled="${type=='infor'}" >
                            <option value="">请选择政治面貌</option>
                            <option value="小学" th:selected="${myData?.standard=='小学'}">小学</option>
                            <option value="初中" th:selected="${myData?.standard=='初中'}">初中</option>
                            <option value="高中" th:selected="${myData?.standard=='高中'}">高中</option>
                            <option value="专科" th:selected="${myData?.standard=='专科'}">专科</option>
                            <option value="本科" th:selected="${myData?.standard=='本科'}">本科</option>
                            <option value="硕士" th:selected="${myData?.standard=='硕士'}">硕士</option>
                            <option value="博士" th:selected="${myData?.standard=='博士'}">博士</option>
                            <option value="其他" th:selected="${myData?.standard=='其他'}">其他</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                    <label class="layui-form-label ">身份证号:</label>
                    <div class="layui-input-block">
                        <input lay-verify="required" th:disabled="${type=='infor'}" class="layui-input" name="identityCard" id="identityCard" placeholder="请输入身份证号"
                               autocomplete="off" th:value="${myData?.identityCard}">
                    </div>
                </div>
                <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                    <label class="layui-form-label ">从业时长:</label>
                    <div class="layui-input-block"  >
                        <input lay-verify="required" th:disabled="${type=='infor'}" type="number" class="layui-input" name="working" id="working" placeholder="请输入从业时长"
                               autocomplete="off" th:value="${myData?.working}">
                    </div>
                </div>
            </div>
            <div class="layui-form-item" style="background: #fff;  min-height: 60px;   padding-top: 10px; padding-left: 12px;margin: 0">
                <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                    <label class="layui-form-label ">联系方式:</label>
                    <div class="layui-input-block" >
                        <input lay-verify="required" th:disabled="${type=='infor'}" class="layui-input" name="phone" id="phone" placeholder="请输入联系方式"
                               autocomplete="off" th:value="${myData?.phone}">
                    </div>
                </div>
                <div class="layui-inline" style="width: calc((100% - 55px) / 4)">
                    <label class="layui-form-label ">现工作单位:</label>
                    <div class="layui-input-block" >
                        <input lay-verify="required" th:disabled="${type=='infor'}" class="layui-input" name="orgName" id="orgName" placeholder="请输入现工作单位"
                               autocomplete="off" th:value="${myData?.orgName}">
                    </div>
                </div>
            </div>

            <div class="layui-form-item" style="background: #fff;  min-height: 200px;   padding-top: 10px; padding-left: 12px;margin: 0">
                <label class="layui-form-label ">个人照片:</label>
                <div class="layui-input-block" style="background: #fff;  width: calc(100% - 100px);  height: 180px;  padding-top: 0px; padding-left: 12px;margin: 0">
                    <div class="layui-upload-list" id="myUpdataImageList">

                        <input style="display: none" id="ImageList" th:value="${myData?.userImg}">
                        <div class="layui-inline mybutton" style="padding: 0"
                             th:each="item,imgStat:${userImgs}" th:attr="myid=${imgStat.index}+'-0'" >
                            <img class="upImg" th:src="${item}" style="height: 100%;width: 100%">
                            <input th:value="${imgStat.index}" class="layui-hide">
                            <a th:if="${type!='infor'}"  style=" position: absolute; right: 0; top: 0;width: 20px; height: 20px;" href="#"  th:attr="onclick='removeImgs('+${imgStat.index}+')'">
                                <img style="    width: inherit;height: inherit"  class="closeUpload" src="/img/close.png" >
                            </a>
                        </div>

                        <div th:if="${type!='infor'}"  id="myUpdataImage" class="layui-inline mybutton" style="justify-content:center">
                            <span>选择图片</span>
                        </div>
                    </div>

                </div>
            </div>
            <div class="layui-form-item" style="background: #fff;  min-height: 150px;   padding-top: 10px; padding-left: 12px;margin: 0">
                <label class="layui-form-label ">个人简介:</label>
                <div class="layui-input-block1" style="height: 100px; width: calc(100% - 200px);    margin-left: 60px;" >
                    <textarea lay-verify="required" maxlength="300" th:disabled="${type=='infor'}" style="height: 100%;resize: none;" name="brief"
                              class="form-control description" type="text" th:utext="${myData?.brief}"
                              placeholder="brief"  oninput="updateCount(this)"></textarea>
                    <div class="maxlength" style="    position: absolute; right: 64px; bottom: 0px;">当前字符数: <span id="currentChars" th:text="${myData?.brief.length()}">0</span> / 300</div>
                </div>
            </div>
            <div class="layui-form-item" style="background: #fff;  min-height: 150px;   padding-top: 10px; padding-left: 12px;margin: 0">
                <label class="layui-form-label ">何时获得何种荣誉:</label>
                <div class="layui-input-block1" style="height: 100px; width: calc(100% - 200px);" >
                    <textarea lay-verify="required" th:disabled="${type=='infor'}" style="height: 100%;resize: none;" name="honor" class="form-control description" type="text" th:utext="${myData?.honor}" placeholder="brief"></textarea>
                </div>
            </div>
            <div class="layui-form-item" style="background: #fff;  min-height: 150px;   padding-top: 10px; padding-left: 12px;margin: 0">
                <label class="layui-form-label ">自荐绝活:</label>
                <div class="layui-input-block1" style="height: 100px; width: calc(100% - 200px);    margin-left: 60px;" >
                    <textarea lay-verify="required" th:disabled="${type=='infor'}" style="height: 100%;resize: none;" name="skill" class="form-control description" type="text" th:utext="${myData?.skill}" placeholder="skill"></textarea>
                </div>
            </div>

        </th:block>
        <th:block th:if="${type=='infor'}">
        <div class="layui-form-item " style="background: #fff;  min-height: 60px;display: flex; align-items: center; padding-left: 30px;   padding-top: 10px;margin: 20px 0 0 0" >
            <h3 class="box"> 审核记录</h3>
        </div>
        <th:block th:if="${(null==myData?.historyReview||myData?.historyReview=='')||((null==myData?.historyReview||myData?.historyReview=='')&&myData?.status==4)}">
        <!-- 第一次,/一次通过了-->
            <input type="text" id="status" style="display: none" th:value="${myData?.status}">
            <div class="layui-form-item" style="background: #fff;  height: 30px; padding-left: 30px;  padding-top: 10px;margin: 0">
                审核状态: <span th:text="${myData?.status==1?'待审核':(myData?.status==2||myData?.status==4?'已审核':(myData?.status==3?'已取消':'-'))}"> </span>
            </div>
            <div class="layui-form-item" style="background: #fff;  height: 30px; padding-left: 30px;  padding-top: 10px; margin: 0">
                审核结果: <span th:text="${myData?.result==1?'已通过':(myData?.result==2||myData?.result==4?'未通过':'-')}"></span>
            </div>
            <div class="layui-form-item" th:if="${myData?.result==2}" style="background: #fff; padding-left: 30px; height: 30px;   padding-top: 10px; margin: 0">
               <span style="opacity: 0;">审核结果: </span> 拒绝原因: <span th:text="${myData.refuseReasion}"></span>
            </div>
            <div class="layui-form-item" style="background: #fff;  height: 50px;  padding-left: 30px;  padding-top: 10px; margin: 0">
                审核时间: <span th:text="(${myData?.reviewTime} eq null ?'-':${#dates.format(myData?.reviewTime, 'yyyy-MM-dd HH:mm:ss')})"></span>
            </div>
        </th:block>
        <th:block th:if="${!(null==myData?.historyReview||myData?.historyReview=='')}">
        <!--拒绝后的待审核/审核通过  -->
            <div class="layui-timeline" style="background: #fff;  height:auto; padding-left:30px;  padding-top: 10px; margin: 0">
                <div class="layui-timeline-item" th:if="${myData?.status!=4}" >
                    <i class="layui-icon layui-timeline-axis"></i>
                    <div class="layui-timeline-content layui-text">
                        <div class="layui-form-item" style="background: #fff;  height: 30px;   padding-top: 10px; padding-left: 12px;margin: 0">
                            审核状态: <span th:text="${myData?.status==1?'待审核':(myData?.status==2?'已审核':(myData?.status==3?'已取消':'-'))}"> </span>
                        </div>
                        <div class="layui-form-item" style="background: #fff;  height: 30px;   padding-top: 10px; padding-left: 12px;margin: 0">
                            审核结果: <span th:text="${myData?.result==1?'已通过':(myData?.result==2?'未通过':'-')}"></span>
                        </div>
                        <div class="layui-form-item" th:if="${myData?.result==2}" style="background: #fff;  height: 30px;   padding-top: 10px; padding-left: 12px;margin: 0">
                            <span style="opacity: 0;">审核结果: </span>  拒绝原因: <span th:text="${myData.refuseReasion}"></span>
                        </div>
                        <div class="layui-form-item" style="background: #fff;  height: 30px;   padding-top: 10px; padding-left: 12px;margin: 0">
                            审核时间: <span th:text="(${myData?.reviewTime} eq null ?'-':${#dates.format(myData?.reviewTime, 'yyyy-MM-dd HH:mm:ss')})"></span>
                        </div>
                    </div>
                </div>
<!--                历史-->
                <div class="layui-timeline-item" th:each="item : ${historyReviews}">
                    <i class="layui-icon layui-timeline-axis"></i>
                    <div class="layui-timeline-content layui-text">
                        <div class="layui-form-item" style="background: #fff;  height: 30px;   padding-top: 10px; padding-left: 12px;margin: 0">
                            审核状态: <span th:text="${item?.status==1?'待审核':(item?.status==2?'已审核':(item?.status==3?'已取消':'-'))}"> </span>
                        </div>
                        <div class="layui-form-item" style="background: #fff;  height: 30px;   padding-top: 10px; padding-left: 12px;margin: 0">
                            审核结果: <span th:text="${item?.result==1?'已通过':(item?.result==2?'未通过':'-')}"></span>
                        </div>

                        <div class="layui-form-item" style="background: #fff;  height: 30px;   padding-top: 10px; padding-left: 12px;margin: 0">
                            <span style="opacity: 0;">审核结果: </span>  拒绝原因: <span th:text="${item.refuseReasion}"></span>
                        </div>
                        <div class="layui-form-item" style="background: #fff;  height: 30px;   padding-top: 10px; padding-left: 12px;margin: 0">
                            审核时间: <span th:text="(${item?.reviewTime} eq null ?'-':${#dates.format(item?.reviewTime, 'yyyy-MM-dd HH:mm:ss')})"></span>
                        </div>
                    </div>
                </div>

            </div>
        </th:block>

        <div class="layui-form-item  layui-flow-more" th:if="${myData?.status!=2&&myData?.status!=4}">
            <div class="layui-inline">
                <button type="button" class="layui-btn" lay-submit lay-filter="submit">通过</button>
                <button type="button" class="layui-btn" onclick="refused()">拒绝</button>
            </div>
        </div>
        </th:block>
        <th:block  th:if="${type=='edit'}">
            <div class="layui-form-item  layui-flow-more" style="justify-content:center;">
                <div class="layui-inline">
                    <button type="button" class="layui-btn" lay-submit lay-filter="submit">确定</button>
                </div>
            </div>
        </th:block>

    </form>
</div>

<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/xmSelect.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/signUp/info.js"></script>
</body>
</html>